<?php

namespace app\common\model;

use think\Model;

class Profile extends Model
{
	protected $autoWriteTimestamp = true;
	protected $insert = [ 'gender' => 0 ];
	protected $update = [];
	protected $type = [
		'id'      => 'integer',
		'user_id' => 'integer',
		'gender'  => 'integer',
	];
	public function user()
	{
		return $this->belongsTo('User');
	}
}
